package com.xinhe.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "订单退款详情")
@Table(name = "tb_order_return")
public class OrderReturn {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("会员id")
    private Long userId;
    @ApiModelProperty("订单id")
    private Long orderId;
    @ApiModelProperty("订单项id")
    private Long orderItemId;
    @ApiModelProperty("状态 APPLY(\"申请\"), DOING(\"退款中\"), SUCCESS(\"成功\"), REJECT(\"拒绝\"), CANCEL(\"取消\")")
    private String status;
    @ApiModelProperty("退款类型 MONEY(\"退款\"), MONEY_GOODS(\"退款退货\"), BARTER(\"换货\")")
    private String returnType;
    @ApiModelProperty("审核说明")
    private String checkRemark;
    @ApiModelProperty("退款原因")
    private String cause;
    @ApiModelProperty("退款金额")
    private BigDecimal returnFee;
}
